#include "MathUtil.h"


float MathUtil::getLineSlope(Position* position1,Position* position2){
	/*pendiente de la recta = y2-y1 / x2-x1 */

	float deltaY = position2->getPixelY() - position1->getPixelY();
	float deltaX = position2->getPixelX() - position1->getPixelX();
	float slope = deltaY/deltaX;
	return atan2(deltaY,deltaX);
}

